package com.hl.sfzy.service.course;

import com.hl.sfzy.entity.course.Courseorder;
import com.hl.sfzy.mapper.course.CourseorderMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: sfzy
 * @description:
 * @author: xiaoyan
 * @create: 2024-09-11 11:43
 **/
@Service
public class CourseOrderService {

    @Autowired
    private CourseorderMapper courseorderMapper;

    public int insertOrder(Courseorder courseorder){
        return courseorderMapper.insertSelective(courseorder);
    }

   public Courseorder SelectOrder( Long courseId, Long userId){
        return courseorderMapper.selectByPrimaryKey(courseId,userId);
    }


}
